package com.session01;

public class Hourly extends Employee {

    public float hourlyRate; // 每⼩时报酬
    public float hoursWorked; // ⼀天的⼯作时间

    public float computePay() {
        return (float) this.hoursWorked * this.hourlyRate;
    }
}
